package api.controller;

import api.feign.LogService;
import com.lyx.common.vo.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * --- Be Humble and Hungry ---
 *
 * @author McMeloxD
 * @date 2024/8/13
 * @desc 日志接口
 */
@RestController
@RequestMapping("/api/user/")
@Tag(name = "日志接口")
public class LogsApi {
    @Resource
    private LogService service;

    @GetMapping("smslogs")
    public R smsLogs(String phone){
        return service.smsLogs(phone);
    }
    @GetMapping("userlogs")
    public R userLogs(Integer uid){
        return service.userLogs(uid);
    }
    @GetMapping("intilogs")
    public R intiLogs(Integer uid){
        return service.intiLogs(uid);
    }
    @GetMapping("kicklogs")
    public R kickLogs(Integer uid){
        return service.kickLogs(uid);
    }
    @GetMapping("signlogs")
    public R SignLogs(Integer uid) {
        return service.SignLogs(uid);
    }
}
